package com.dddframework.data.typehandlers.type;

import cn.hutool.core.collection.CollUtil;

import java.util.ArrayList;
import java.util.List;

public class StringList extends ArrayList<String> {
    public static final StringList EMPTY_LIST = new StringList();

    public static StringList convert(List<String> list) {
        if (CollUtil.isEmpty(list)) return StringList.EMPTY_LIST;
        StringList stringList = new StringList();
        stringList.addAll(list);
        return stringList;
    }

    public static List<String> convert(StringList list) {
        return list;
    }
}
